using SingalR.Server.Hubs;
using System.Net.WebSockets;

var builder = WebApplication.CreateBuilder(args);

builder.Services.AddSignalR();
var app = builder.Build();

app.MapGet("/", () => "Hello World!");
app.UseRouting();
app.UseWebSockets();
app.MapHub<Chat>("/chat");

app.Run();
